package com.hirsi.common.db.developer.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 开发者申请记录表
 * </p>
 *
 * @author 封夕
 * @since 2023-10-25
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("ztk_developer_apply")
public class DeveloperApply extends Model<DeveloperApply> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 开发者id
     */
    @TableField("developer_id")
    private Integer developerId;

    /**
     * 提交时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 提交ip
     */
    @TableField("create_ip")
    private String createIp;

    /**
     * 未填写密码时，自动生成的密码明文
     */
    @TableField("auto_password")
    private String autoPassword;

    /**
     * 备注
     */
    @TableField("remark")
    private String remark;

    /**
     * 逻辑删除字段：0-未删除，null-已删除
     */
    @TableField("deleted")
    private Boolean deleted;

    @Override
    public Serializable pkVal() {
        return this.id;
    }
}
